import request from '@/utils/request.js'

// 获取好友列表
export function getFriendsList(uid) {
  return request({
    url: `/friend/${uid}`,
  })
}

// 添加好友
export function addFriend(data) {
  return request({
    url: '/friend/add',
    method: 'post',
    data: data
  })
}

// 移除好友
export function removeFriend(uid, fid) {
  return request({
    url: `/friend/remove?uid=${uid}&fid=${fid}`,
    method: 'delete'
  })
}